package com.zy.web.demo.duoxiancheng;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/7/28 14:24
 */
public class MyThread extends Thread{

    private int count = 5;

    @Override
    synchronized public void run(){
        super.run();
        count--;
        System.out.println("由"+ currentThread().getName()+"计算,count="+count);
    }

}
